package com.sskj.hangqing.ui.fragment;

import android.support.v4.app.Fragment;
import android.widget.LinearLayout;

import com.alibaba.android.arouter.launcher.ARouter;
import com.sskj.common.util.ClickUtil;
import com.sskj.hangqing.R;
import com.sskj.hangqing.R2;
import com.sskj.hangqing.presenter.FabiCoinFragmentPresenter;
import com.sskj.lib.Constans;
import com.sskj.lib.RConfig;
import com.sskj.lib.base.BaseFragment;

import butterknife.BindView;

/**
 * A simple {@link Fragment} subclass.
 */
public class FabiCoinFragment extends BaseFragment<FabiCoinFragmentPresenter> {


    @BindView(R2.id.llFabi)
    LinearLayout llFabi;
    @BindView(R2.id.llBibi)
    LinearLayout llBibi;
    @BindView(R2.id.llHelp)
    LinearLayout llHelp;


    @Override
    protected int getLayoutId() {
        return R.layout.hang_fragment_fabi_coin;
    }

    @Override
    protected FabiCoinFragmentPresenter getPresenter() {
        return new FabiCoinFragmentPresenter();
    }

    @Override
    protected void initView() {
        ClickUtil.click(llBibi, () -> {
            ARouter.getInstance().build(RConfig.HANG_GUIDE_WEB)
                    .withBoolean(Constans.IS_BIBI, true)
                    .navigation();
        });
        ClickUtil.click(llFabi, () -> {
            ARouter.getInstance().build(RConfig.HANG_GUIDE_WEB)
                    .withBoolean(Constans.IS_FABI, true)
                    .navigation();
        });
        ClickUtil.click(llHelp, () -> {
            ARouter.getInstance().build(RConfig.HANG_GUIDE_WEB)
                    .withBoolean(Constans.IS_HELP, true)
                    .navigation();
        });
    }
}
